package com.luoye.lj.platform.model.domain;

/**
 * Created with IntelliJ IDEA.
 * User: Dave Liu
 * Date: 15-11-2
 * Time: 
 * To change this template use File | Settings | File Templates.
 */
public class RoleInfoSearch {
    private SearchParams search = new SearchParams();
    private long id=-1;
    private String rolename;
    private String description;
    private long delmark=-1;
    private int roletype=-1;

    public RoleInfoSearch(RoleInfo role) {
        this.id = role.getId();
        this.rolename = role.getRolename();
        this.description = role.getDescription();
        this.roletype=role.getRoletype();
    }

    public RoleInfoSearch(SearchParams search, long id, String rolename, String description,long delmark,int roletype) {
        this.search = search;
        this.id = id;
        this.rolename = rolename;
        this.description = description;
        this.delmark = delmark;
        this.roletype=roletype;
    }
    public RoleInfoSearch(){

    }
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public SearchParams getSearch() {
        return search;
    }

    public void setSearch(SearchParams search) {
        this.search = search;
    }

    public long getDelmark() {
        return delmark;
    }

    public void setDelmark(long delmark) {
        this.delmark = delmark;
    }

    public int getRoletype() {
        return roletype;
    }

    public void setRoletype(int roletype) {
        this.roletype = roletype;
    }

    @Override
    public String toString() {
        return "RoleInfoSearch{" +
                "search=" + search +
                ", id=" + id +
                ", rolename='" + rolename + '\'' +
                ", description='" + description + '\'' +
                ", delmark=" + delmark +
                '}';
    }
}
